package com.rowline.admin.module.study.soap;

/**
 * ClassName:WeatherInterfaceImpl
 * Created by 245167
 * on 2017/10/18  18:34
 * description:
 */
public class WeatherServiceImpl implements WeatherService {
    @Override
    public String queryWeather(String cityName) {
        System.out.println("How is the weather of " + cityName + " ?");
        String weather = null;
        if("上海".equals(cityName)){
            weather = "多云";
        }else{
            weather = "晴朗";
        }
        System.out.println("It's " + weather);
        return weather;
    }
}
